//app.js
App({
    data:{
        status:'',
        navHeight:'' 
    },
    onLaunch: function () {
        var that = this,
            sysinfo = wx.getSystemInfoSync(),
            statusHeight = sysinfo.statusBarHeight,
            isiOS = sysinfo.system.indexOf('iOS') > -1,
            navHeight;
        if (!isiOS) {
            navHeight = 48;
        } else {
            navHeight = 44;
        }
        this.globalData.statusHeight = statusHeight
        this.globalData.navHeight = navHeight

    },
    globalData: {
        statusBarHeight: wx.getSystemInfoSync()['statusBarHeight'],
        statusHeight:'',
        navHeight:''
    },



    
})